package main

import (
	"fmt"
	"sync"
)

func hello() {
	fmt.Println("only once")
}

func main() {
	var once sync.Once
	// hello()
	once.Do(hello)
	fmt.Println("first")
	once.Do(hello)
	fmt.Println("second")
}
